<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unconfirm UA Bonus</title>
<link href="/css/template.css" rel="stylesheet" type="text/css" />
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Unconfirm UA Bonus List</h1>

<form action = "" method = "post">
	<h3>Payroll cycle <?php echo $this->payroll;?></h3>
	<p>(<?php echo $this->dateStart;?> - <?php echo $this->dateEnd?>)</p>
	<?php $stfDetail = new Model_DbTable_Roster_Stafflogindetail();?>
	<br/>
	<br/>
	
	<?php foreach ($this->result as $shopCode => $v){$i = 1;?>
	<table width="600" border="1" cellspacing="0" cellpadding="10">		
					
			<tr>
				<th colspan = "4"><?php echo $shopCode?></th>
			</tr>
			<tr>
				<th>No.</th>
				<th>Staff</th>
				<th>Amount</th>
				<th>Reason</th>
			</tr>
				<?php foreach ($v as $stfId => $value){?>
					<tr>
						<td align = "center"><?php echo $i++;?></td>
						<?php $stfD = $stfDetail->getDetail($stfId);?>
						<td align = "center"><?php echo ucwords(Model_EncryptHelper::getSslPassword($stfD["n"]))."(".$stfD['ni'].")";?></td>
						<td align = "center">$<?php echo $value['amount']?></td>
						<td align = "center"><?php echo $value['reason']?><input type = "hidden" name = "ua[<?php echo $value['ua_id']?>][<?php echo $stfId?>]" value = "<?php echo $value['amount']?>"></input></td>
					</tr>
				<?php }?>
				<tr>
					<td>Action:</td>
					<td><input type = "radio" name = "action[<?php echo $value['ua_id']?>]" value = "1"></input>Accept</td>
					<td><input type = "radio" name = "action[<?php echo $value['ua_id']?>]" value = "2"></input>Reject</td>
					<td><input type = "text" name = "reason[<?php echo $value['ua_id']?>]" ></input></td>
					
				</tr>
	</table>
	<br/>
	<br/>
	<?php }?>
	
	<br/>
	<input type = "submit" id = "submit" name = "submit" value = "Submit" ></input>
</form>
</body>
</html>
